package ysq.xyg.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 订单记录
 * */
@Getter
@Setter
@Table(name = "xyg_order")
public class Order implements Serializable {
    @Id
    private String id;
    /**
     * 用户id
     */
    @Column(name = "member_id")
    private String memberId;
    /**
     * 号数
     */
    @Excel(name = "活动号",orderNum = "2")
    private int num;
    /**
     * 账号金额（单位为1)
     */
    private Double money;

    /**
     * 1.待支付，2、已支付
     */
    @Excel(name = "交付状态",replace = { "未交费_1", "已交费_2" },orderNum = "7")
    private String status;

    /**
     * 交费时间
     */
    @Excel(name = "交费时间", format = "yyyy-MM-dd HH:mm:ss",orderNum = "8")
    @Column(name = "pay_time")
    private Date payTime;

    /**
     * 交易代码
     */
    @Excel(name = "交易代码", orderNum = "9")
    @Column(name = "pay_no")
    private String payNo;
    /**
     * 活动id
     */

    @Column(name = "activity_id")
    private String activityId;

    /**
     * 创建时间
     */
    @Excel(name = "参与时间", format = "yyyy-MM-dd HH:mm:ss",orderNum = "10")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 姓名
     */
    @Excel(name = "姓名",orderNum = "3")
    @Transient
    private String name;
    /**
     * 性别
     */
    @Excel(name = "性别",orderNum = "4")
    @Transient
    private String memberSex;
    /**
     * 手机号
     */
    @Excel(name = "手机号",orderNum = "5")
    @Transient
    private String memberPhone;
    /**
     * 单位id
     */
    @Transient
    private String grade;
    /**
     * 单位名称
     */
    @Excel(name = "单位名称",orderNum = "6")
    @Transient
    private String memberGrade;
    /**
     * 活动手机号
     */
    @Transient
    private String activityPhone;
    /**
     * 活动名称
     */
    @Excel(name = "活动名称",orderNum = "1")
    @Transient
    private String activityName;
    /**
     * 活动地址
     */
    @Transient
    private String activityAddress;
    /**
     * 活动图片
     */
    @Transient
    private String activityPicture;
    /**
     * 举办方
     */
    @Transient
    private String organizers;
    /**
     * 开始时间
     */
    @Transient
    private Date startTime;

    /**
     * 结束时间
     */
    @Transient
    private Date endTime;

}